<template>
  <div class="edit_button_container">
    <el-button
      size="mini"
      type="info"
      icon="el-icon-close"
      circle
      @click="close($event)"
    ></el-button>
    <!-- 提交编辑 -->
    <el-button
      size="mini"
      type="success"
      icon="el-icon-check"
      circle
      @click="check($event)"
    ></el-button>
  </div>
</template>

<script>
export default {
  name: "EditButton",
  methods: {
    close(event) {
      this.$emit("cancel", event);
    },
    check(event) {
      this.$emit("complete", event);
    },
  },
};
</script>

<style lang="less" scoped>
.edit_button_container {
  display: inline-block;
}
</style>